﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Practices.EnterpriseLibrary.Caching;
using Microsoft.Practices.EnterpriseLibrary.Caching.Expirations;

namespace CacheStudy
{
    class Program
    {
        static void Main(string[] args)
        {
            CacheManager cacheManager = CacheFactory.GetCacheManager() as CacheManager;
            cacheManager.Add("address", "qingdao");
            string temp= (string)cacheManager["address"];

            Console.WriteLine(temp);
            Console.ReadLine();
        }
    }
}
